﻿namespace League
{
    internal class Program
    {
        static void Main(string[] args)
        {
            // 创建联赛
            League league = new League();

            // 添加一些球队
            league.AddTeam(new Team("TeamA"));
            league.AddTeam(new Team("TeamB"));
            league.AddTeam(new Team("TeamC"));
            league.AddTeam(new Team("TeamD"));

            // 模拟输入最近一轮比赛结果
            league.UpdateMatch("TeamA", "TeamB", 2, 1); // TeamA 2:1 战胜 TeamB
            league.UpdateMatch("TeamC", "TeamD", 0, 0); // TeamC 0:0 平 TeamD
            league.UpdateMatch("TeamA", "TeamC", 1, 1); // TeamA 1:1 平 TeamC
            league.UpdateMatch("TeamB", "TeamD", 3, 2); // TeamB 3:2 战胜 TeamD

            // 输出最新积分表
            league.PrintRankings();
        }
    }
}
